package com.example.navigationdemo.part3

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.example.navigationdemo.R
import kotlinx.android.synthetic.main.activity_other_with_arg.*

class OtherWithArgActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_other_with_arg)
        var arg2 = intent.getStringExtra("arg2")
        tv_arg.append(arg2)
    }
}